package com.jyu.hakkatranslation.service.Impl;

//import com.sun.org.apache.bcel.internal.util.Repository;


import com.jyu.hakkatranslation.dao.RootMapper;
import com.jyu.hakkatranslation.pojo.Root;
import com.jyu.hakkatranslation.service.RootServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RootServicesImpl implements RootServices {

    @Autowired
    private RootMapper rootMapper;

    @Override
    public Root login(String root_name, String root_password) {
        System.out.println(root_name);
        System.out.println(root_password);
        Root root = rootMapper.login(root_name, root_password);
        if (root==null)
            System.out.println("无");
        return root;
    }
}
